﻿@{
    Layout = null;
    DateTime checkinTime = Convert.ToDateTime(@ViewBag.checkinTime);
    string Count = ViewBag.Count;
    //string InspectorsName = ViewBag.InspectorsName;
    DateTime ToDateTime = Convert.ToDateTime(@ViewBag.ToDateTime);
    //string PointName= ViewBag.PointName;
}
@*@model DotNet.JCore.Entity.InspectorRegistrationSum*@
@model PageList<DotNet.JCore.Entity.InspectorRegistrationSum>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no;">
    <title>西安市班线客运安全管理系统</title>
    <link href="~/www/css/style.css" rel="stylesheet"/>
    <style>
        .lcSubfh {
            width: 94%;
            line-height: 2em;
            padding: 1%;
            background: #204c95;
            border: none;
            color: #fff;
            font-family: '微软雅黑';
            font-size: 1em;
            border-radius: 5px;
            margin: 5% 2%;
        }
        /* 强制不换行 */
        p {
            padding: 0px;
            margin: 0px;
            display: inline;
        }
    </style>
</head>
<body>
    <div class="djcCen">
        <div class="djcCenHea"><span></span>稽查日志</div>
        @*<div class="djcCenFor"><p>@ViewBag.checkinTime</p><p>稽查数据</p></div>*@
        <div class="djcCenFor"><p>@DateTimeHelper.FormatDate(checkinTime)</p><p>稽查数据</p></div>
        <div class="djcCenTab">
            <form action="@Url.Action("home", "M_Login")">
                <table class="djcCTDri">
            @if (Count == "0")
            {
                    <tr><td>姓名</td><td><p>@ViewBag.InspectorsName</p></td><td>检查点</td><td>@ViewBag.PointName</td></tr>
                    <tr><td>系统登记数</td><td>0</td><td>手工登记数</td><td>0</td></tr>
                    <tr><td>正常数</td><td><span style="color:lightgreen; font-weight:800;">0</span></td><td>手工登记正常数</td><td><span style="color:lightgreen; font-weight:800;">0</span></td></tr>
                    <tr><td>违规数</td><td><span style="color:red;  font-weight:800;">0</span></td><td>手工登记违规数</td><td><span style="color:red;  font-weight:800;">0</span></td></tr>
            }
            else
            {
                foreach (var record in Model)
                {
                    <tr><td>姓名</td><td><p>@ViewBag.InspectorsName</p></td><td>检查点</td><td>@ViewBag.PointName</td></tr>
                    <tr><td>系统登记数</td><td>@record.registrationNo</td><td>手工登记数</td><td>@record.ManualregistrationNo</td></tr>
                    <tr><td>正常数</td><td><span style="color:lightgreen; font-weight:800;">@record.normalNo</span></td><td>手工登记正常数</td><td><span style="color:lightgreen; font-weight:800;">@record.ManualNormalNo</span></td></tr>
                    <tr><td>违规数</td><td><span style="color:red;  font-weight:800;">@record.violationNo</span></td><td>手工登记违规数</td><td><span style="color:red;  font-weight:800;">@record.ManualviolationNo</span></td></tr>
                    @*<tr><td>姓名</td><td>@record.InspectorsName</td><td>检查点</td><td>@record.pointName</td></tr>
                    <tr><td>系统登记数</td><td>@record.registrationNo</td><td>正常数</td><td>@record.normalNo</td></tr>
                    <tr><td>违规数</td><td>@record.violationNo</td><td>手工登记数</td><td>@record.ManualregistrationNo</td></tr>
                    <tr><td>手工登记正常数</td><td>@record.ManualNormalNo</td><td>手工登记违规数</td><td>@record.ManualviolationNo</td></tr>*@
                }
           }
                </table>
                <input type="submit" value="返回" class="lcSubfh" />
            </form>
        </div>
    </div>
</body>
</html>


